home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / wputil35.arc / PDX2WP11.ARC / PDX2WP.DOC < prev    next >
Text File  |  1991-02-28  |  44KB  |  1,071 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.                                         PDX2WP
  19.  
  20.                      A Paradox to WordPefect Translation Utility
  21.  
  22.  
  23.                                 Shareware Version 1.10
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.                           Copyright (c) 1990 S.L.S. Systems
  52.  
  53.                                  All Rights Reserved.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                                      TABLE OF CONTENTS
  66.  
  67.  
  68.                License and Warranty Information  . . . . . . . . . . .    1
  69.  
  70.                What Is PDX2WP? . . . . . . . . . . . . . . . . . . . .    2
  71.  
  72.                Installing PDX2WP . . . . . . . . . . . . . . . . . . .    3
  73.  
  74.                How to Use the PDX2WP Utility . . . . . . . . . . . . .    4
  75.                    Running  the PDX2WP  Utility  From  the DOS  Command
  76.                        Line  . . . . . . . . . . . . . . . . . . . . .    4
  77.                    Running  the  PDX2WP  Utility  From  a  Paradox  PAL
  78.                        Script  . . . . . . . . . . . . . . . . . . . .    5
  79.                    Running the PDX2WP Utility From Interactive Paradox    7
  80.  
  81.                How to Use the WP2PDX Utility . . . . . . . . . . . . .    9
  82.                    Running  the WP2PDX  Utility  From  the DOS  Command
  83.                        Line  . . . . . . . . . . . . . . . . . . . . .    9
  84.                    Running the PDX2WP Utility From Paradox . . . . . .   10
  85.  
  86.                Limitations of PDX2WP . . . . . . . . . . . . . . . . .   11
  87.  
  88.                Suggestions and Hints . . . . . . . . . . . . . . . . .   13
  89.  
  90.                Final Comments  . . . . . . . . . . . . . . . . . . . .   14
  91.  
  92.                Invoice/Registration Form . . . . . . . . . . . . . . .   16
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.           ─────────────────────────────────────────────────────────────────
  113.           PDX2WP                        Page i
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.           License and Warranty Information
  125.           ================================
  126.  
  127.                PDX2WP  is not  in the  public domain.  This is  a shareware
  128.                product. It is fully protected by copyright law.
  129.  
  130.                You are  granted without charge a license  which permits (a)
  131.                use of the   program for a reasonable period  for evaluation
  132.                and testing;  (b) making  copies for distribution  to others
  133.                without charge,  provided the program   and the accompanying
  134.                documentation  and other files  are distributed together and
  135.                without   modification;  (c) posting  the program,  together
  136.                with  the accompanying  documentation  and other  files,  on
  137.                electronic bulletin board systems.
  138.  
  139.                How long is a reasonable period?   The idea of shareware  is
  140.                that you should be able to  try a program before deciding to
  141.                buy it. Once  you have  tried PDX2WP  and found  that it  is
  142.                useful  to you you should  begin to realize  its benefits. A
  143.                period  of two weeks after first use should be sufficient to
  144.                determine the  program's usefulness. Any time  after the two
  145.                weeks is unreasonable.
  146.  
  147.                Use after  the reasonable evaluation and  testing period re-
  148.                quires payment of  a license fee.   For a single  copy (plus
  149.                necessary archival  copies), to be used on only one computer
  150.                at  a  time, the  fee is  $30.00.  For your  convenience, an
  151.                invoice form is included  at the end of  this documentation.
  152.                For large quantities, discounts and site licenses are avail-
  153.                able. Write for information.
  154.  
  155.                PDX2WP is licensed, and the documentation and other included
  156.                files are  provided  "AS IS,"  without  any warranty  as  to
  157.                performance, accuracy,  or freedom from error, or  as to any
  158.                results generated  through use of such  material, including,
  159.                without limitation, any implied warranties of merchantabili-
  160.                ty or fitness for a particular purpose.
  161.  
  162.                Paradox is a trademark of Borland International
  163.                WordPerfect is a registered  trademark of WordPerfect Corpo-
  164.                ration
  165.  
  166.                                       S.L.S. Systems
  167.                                       13 Shirley Ave.
  168.                                Kingston, Massachusetts 02364
  169.                                        617-585-3620
  170.  
  171.  
  172.           ─────────────────────────────────────────────────────────────────
  173.           PDX2WP                        Page 1
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.           What Is PDX2WP?
  185.           ===============
  186.  
  187.                PDX2WP  is actually a pair  of utilities, PDX2WP and WP2PDX,
  188.                which will perform translation  of Paradox tables into Word-
  189.                Perfect  documents or WordPerfect  secondary merge documents
  190.                into  Paradox tables.  The documents  created by  PDX2WP are
  191.                meant for use with  WordPerfect version 5.0 or later,  while
  192.                the  documents converted  by  WP2PDX must  already exist  as
  193.                WordPerfect version 5.0 or later secondary merge documents.
  194.  
  195.                It is  important  to note  that  neither PDX2WP  nor  WP2PDX
  196.                require the presence  of either Paradox or WordPerfect.  All
  197.                that  is required to run PDX2WP is an existing Paradox table
  198.                which  will be  translated,  while WP2PDX  only requires  an
  199.                existing WordPerfect secondary merge document.  It must also
  200.                be  noted that neither PDX2WP nor WP2PDX affect or alter the
  201.                original Paradox  table or WordPerfect document  in any man-
  202.                ner.
  203.  
  204.                The WordPerfect document  which is created by PDX2WP  may be
  205.                any of three formats: 
  206.  
  207.                    --  A WordPerfect  table, with rows and columns, similar
  208.                        in appearance to a spreadsheet. In this format, each
  209.                        Paradox  record becomes  a  row  in the  WordPerfect
  210.                        table, with each column  representing a field of the
  211.                        record (up to the  WordPerfect limit of 32 columns).
  212.                        The maximum number of rows in a WordPerfect table is
  213.                        32,765.   WordPerfect tables  may be used  only with
  214.                        versions 5.1 or later of WordPerfect.
  215.  
  216.                    --  WordPerfect  parallel columns, where  blocks of text
  217.                        are separated  into columns which  are printed side-
  218.                        by-side.   With  PDX2WP  each field  of the  Paradox
  219.                        record is entered  into a column, with  as many col-
  220.                        umns as there are fields in the Paradox table (up to
  221.                        the WordPerfect limit of 24 columns).
  222.  
  223.                    --  WordPerfect  secondary merge file, where a secondary
  224.                        merge  record  is created  for  each  record in  the
  225.                        Paradox  table.  A  merge field is  created for each
  226.                        field in the  Paradox record. There  is no limit  on
  227.                        the number of fields for a secondary merge record.
  228.  
  229.  
  230.  
  231.  
  232.           ─────────────────────────────────────────────────────────────────
  233.           PDX2WP                        Page 2
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.                The WordPerfect document to be converted by WP2PDX must be a
  245.                secondary merge document, created by WordPerfect version 5.0
  246.                or later.   It must be a document set up with individual re-
  247.                cords, separated by WordPerfect  "end of record" merge codes
  248.                (either ^E or  {END RECORD}).   Each record  must be  broken
  249.                into fields,  each separated  by WordPerfect "end  of field"
  250.                codes (either ^R or {END FIELD}).
  251.  
  252.                This shareware version of PDX2WP and WP2PDX are command-line
  253.                oriented programs.  This means that there are no menus, win-
  254.                dows,  data entry forms, or  other user interface.   All op-
  255.                tions to  the programs  are specified as  parameters to  the
  256.                programs when run from the DOS command line.
  257.  
  258.  
  259.           Installing PDX2WP
  260.           =================
  261.  
  262.                As  mentioned earlier,  PDX2WP  is  actually two  utilities.
  263.                Each  of  these  utilities  is  a  self-contained executable
  264.                program file, PDX2WP.EXE and  WP2PDX.EXE.  Simply insert the
  265.                distribution disk into your floppy disk drive and copy these
  266.                two programs from the distribution disk to a directory which
  267.                is included  in your DOS path.   For example, if  you have a
  268.                directory named  \UTILITY in  which you keep  all utilities,
  269.                copy the two program files into the \UTILITY directory using
  270.                the DOS "copy" command, as follows:
  271.  
  272.                    copy a:*.exe c:\utility
  273.  
  274.                Included with the two  executable programs are the following
  275.                files:
  276.  
  277.                    PDX2WP.DOC      This documentation file.
  278.                    PDX2WP.SC       A Paradox  script which  can be  used to
  279.                                    execute  PDX2WP from  within interactive
  280.                                    Paradox.
  281.                    INIT.SC         A  Paradox  startup  script which,  when
  282.                                    placed in the Paradox  startup directory
  283.                                    (i.e.,   \PARADOX3)   will  assign   the
  284.                                    PDX2WP.SC  script  to the  Shift-F5 key.
  285.                                    This  file should be  modified to direct
  286.                                    Paradox  to  the   directory  to   which
  287.                                    PDX2WP.SC was copied.
  288.                    CONTACTS.DB     A  sample Paradox  table for  use  as an
  289.                                    example for PDX2WP.
  290.  
  291.  
  292.           ─────────────────────────────────────────────────────────────────
  293.           PDX2WP                        Page 3
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.                    MAILLIST.DOC    A  sample  WordPerfect  secondary  merge
  305.                                    document for use  as an example for  WP-
  306.                                    2PDX.
  307.  
  308.                Copy the  above files  to appropriate directories,  and both
  309.                PDX2WP and WP2Pdx will be ready  to run, from either the DOS
  310.                command line or from within Paradox.
  311.  
  312.  
  313.           How to Use the PDX2WP Utility
  314.           =============================
  315.  
  316.                PDX2WP may be run from  either the DOS command line or  from
  317.                within a Paradox PAL script.  By creating a short PAL script
  318.                and  attaching the script  to a  key combination  in Paradox
  319.                using the SETKEY command,  the program may also be  run from
  320.                interactive  Paradox.   (Although  WordPerfect provides  the
  321.                capability  to run a DOS command, there is not enough memory
  322.                available to run PDX2WP while WordPerfect is running.)
  323.  
  324.  
  325.                Running the PDX2WP Utility From the DOS Command Line
  326.                ----------------------------------------------------
  327.  
  328.                    When running PDX2WP from the DOS command line, you  must
  329.                    specify the name of the WordPerfect document you wish to
  330.                    create, the name of the Paradox table you wish to trans-
  331.                    late, and  a "switch" specifying which  type of WordPer-
  332.                    fect document you wish to create.
  333.  
  334.                    The syntax for PDX2WP is:
  335.  
  336.                        PDX2WP document-name table-name /type
  337.  
  338.                    "Document-name" is the name  of the WordPerfect document
  339.                    you  wish to create.  You may include a drive specifier,
  340.                    a  full path name, and a file  name.  The file name fol-
  341.                    lows  standard DOS naming conventions: a name of up to 8
  342.                    characters, followed by an optional period and an exten-
  343.                    sion of up to 3 characters.  The following are all valid
  344.                    names for a WordPerfect document:
  345.  
  346.                        MY-FILE
  347.                        PDX-TABL.DOC
  348.                        B:NAMES
  349.                        C:\WP\DOCUMENT\MAILLIST.WP
  350.  
  351.  
  352.           ─────────────────────────────────────────────────────────────────
  353.           PDX2WP                        Page 4
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.                    "Table-name" is the name of the Paradox table which will
  365.                    be translated.  This name  may be the name of any  valid
  366.                    Paradox  table.   As  with  the  document-name, you  may
  367.                    include  a drive  specifier and  a full  path name.   An
  368.                    extension of "DB" is assumed.  Therefore, do not include
  369.                    an  extension.  If  an extension  is included,  an error
  370.                    message will be displayed.
  371.  
  372.                    "Type" represents  the type  of translation you  wish to
  373.                    perform, and is always  preceded by a "/".   Valid types
  374.                    and there meaning are:
  375.  
  376.                        T   Create a WordPerfect Table (Version 5.1 only)
  377.  
  378.                        C   Create parallel columns (Version 5.0 or later)
  379.  
  380.                        M   Create a  secondary merge  file (Version 5.0  or
  381.                            later)
  382.  
  383.                    The following are examples of valid command-line entries
  384.                    for the PDX2WP utility:
  385.  
  386.                        PDX2WP CONTACTS.WP CONTACTS /M
  387.                        PDX2WP \ACCOUNT.TBL \PARADOX\FILES\ACCOUNT /T
  388.                        PDX2WP A:MERGE.NMS NAMES /M
  389.                        PDX2WP PARTLIST \PARADOX\INVENTORY\PARTS /C
  390.  
  391.                    After  typing the  appropriate  command-line  entry  and
  392.                    pressing ENTER,  several lines of  copyright information
  393.                    are  displayed.   After the  copyright  lines is  a line
  394.                    which displays the progress  of the conversion  process,
  395.                    showing the record  number of each Paradox  record as it
  396.                    is translated.   Upon  completion, a  message indicating
  397.                    the  total number  of  records translated  is displayed.
  398.                    This number indicates the number of rows in the WordPer-
  399.                    fect table or  column structure, or the  number of merge
  400.                    records created in a secondary merge file.
  401.  
  402.                Running the PDX2WP Utility From a Paradox PAL Script
  403.                ----------------------------------------------------
  404.  
  405.                    By  using the PDX2WP  utility within  a PAL  script, the
  406.                    translation of a  Paradox table can  be made to  execute
  407.                    automatically, without user intervention.  PDX2WP can be
  408.                    run  within a PAL script using the PAL command "RUN BIG"
  409.  
  410.  
  411.  
  412.           ─────────────────────────────────────────────────────────────────
  413.           PDX2WP                        Page 5
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.                    followed  by the command-line entry for PDX2WP described
  425.                    in the previous section.
  426.  
  427.                    A common application of this use would be to translate a
  428.                    Paradox ANSWER table which  is created as a result  of a
  429.                    query.   This allows  for the translation  of a selected
  430.                    subset of records from a Paradox table.  Following is an
  431.                    excerpt of  a simple PAL script performing such a query.
  432.                    The line numbers are shown for information only, and are
  433.                    not part of the script
  434.  
  435.                     1  query
  436.                     2
  437.                     3  contacts |Name   |Address  |City     |
  438.                     4           |check  |check    |check    |
  439.                     5           |       |         |         |
  440.                     6           |       |         |         |
  441.                     7
  442.                     8
  443.                     9  contacts |State            |Zip Code |
  444.                    10           |check, MA        |check    |
  445.                    11           |                 |         |
  446.                    12           |                 |         |
  447.                    13
  448.                    14  endquery
  449.                    15
  450.                    16  Do_It!
  451.                    17
  452.                    18  If Istable("Answer") then
  453.                    19      run big "pdx2wp contacts.wp answer /m"
  454.                    20  endif
  455.  
  456.                    In  this example, the  first portion  of PAL  code, from
  457.                    line 1 to line 14, is a script which was generated using
  458.                    the Paradox  QuerySave command.  The  script queries the
  459.                    Paradox  table "Contacts,"  requesting the  fields Name,
  460.                    Address, City, State, and Zip Code, where State is equal
  461.                    to  "MA."    By  editing  the  script  with the  Paradox
  462.                    Script/Edit command and adding  lines 15 through 20, the
  463.                    script can be  made to  perform both the  query and  the
  464.                    PDX2WP translation of the resulting Answer file.
  465.  
  466.                    The "Do_It!"  command on line 16 causes  Paradox to per-
  467.                    form  the query  specified on  lines 1  through 14.   If
  468.                    there are any records which  satisfy the criteria in the
  469.                    query  command, the  Answer table  will be  created with
  470.  
  471.  
  472.           ─────────────────────────────────────────────────────────────────
  473.           PDX2WP                        Page 6
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.                    those selected  records  and  will  become  the  current
  485.                    table.   Otherwise, no Answer table  will be created and
  486.                    the  current table  will  still be  the Contacts  table.
  487.                    Line 18 checks to see if the current table is the Answer
  488.                    table.   If so, then line 19 is executed, which actually
  489.                    runs PDX2WP as  if it  were entered at  the DOS  command
  490.                    line.   When PDX2WP  completes the  translation, control
  491.                    will return  to the PAL script, and any further commands
  492.                    will be executed.
  493.  
  494.  
  495.                Running the PDX2WP Utility From Interactive Paradox
  496.                ---------------------------------------------------
  497.  
  498.                    There are two methods of running PDX2WP  from the inter-
  499.                    active Paradox environment.   It may be run as  a "mini-
  500.                    cript"  using the same statement shown on line 20 of the
  501.                    above script, or it  can be attached to a  Paradox "hot-
  502.                    key" with the SETKEY command.
  503.  
  504.                    To  execute PDX2WP as a mini-script, access the PAL menu
  505.                    by pressing Alt-F10.   Choose the MiniScript option from
  506.                    the menu.   A message  prompting for a  command will  be
  507.                    displayed.  Type in  the command using the RUN  BIG com-
  508.                    mand, as in the example on line 20 of the  script above.
  509.                    Be  sure to  substitute  the appropriate  document-name,
  510.                    table-name  and translation  type  in the  command, then
  511.                    press Enter to execute PDX2WP.
  512.  
  513.                    The second  method for running PDX2WP  from the interac-
  514.                    tive  Paradox  environment  is by  assigning  the PDX2WP
  515.                    command to a key combination.  This is done by using the
  516.                    Paradox  SETKEY command  in a  special PAL  script named
  517.                    "Init."
  518.  
  519.                    The Init  script resides  in the default  data directory
  520.                    for Paradox, and includes any number  of functions to be
  521.                    performed  automatically when  Paradox is  first loaded.
  522.                    By including  a SETKEY  command for PDX2WP  in the  Init
  523.                    script,  the PDX2WP  utility may  be executed  simply by
  524.                    performing the  keystroke to  which the program  was as-
  525.                    signed.   The following line assigns  the PDX2WP command
  526.                    to the Shift-F5 key combination:
  527.  
  528.                        setkey "F15" run big "pdx2wp " + table() + " " + ta-
  529.                        ble() + " /t"
  530.  
  531.  
  532.           ─────────────────────────────────────────────────────────────────
  533.           PDX2WP                        Page 7
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.                    This  example again uses the RUN BIG command, as well as
  545.                    the TABLE() function, which returns the name of the cur-
  546.                    rent Paradox  table, to  create a WordPerfect  file with
  547.                    the same name as the Paradox table.
  548.  
  549.                    Although this is a simple example, it does not allow the
  550.                    flexibility  of choosing  which type  of translation  to
  551.                    perform once Paradox is running.  By using a combination
  552.                    of  the SETKEY command in the Init script and a separate
  553.                    script which performs the translation, the choice can be
  554.                    made at the time the key combination is pressed.  Rather
  555.                    than having  the assigned key combination  do the actual
  556.                    translation, a separate  script may be played by the as-
  557.                    signed  key combination.   The  SETKEY statement  in the
  558.                    Init script would then look more like the following:
  559.  
  560.                        setkey "F15" play "\\paradox3\\pdx2wp"
  561.  
  562.                    The section of the line in quotes after the PLAY command
  563.                    is  the  directory and  file name  of  the script  to be
  564.                    played.   (When  specifying a  path  or directory  in  a
  565.                    script, the  subdirectory names  must be separated  by 2
  566.                    backwards slashes.)
  567.  
  568.                    A complete  sample PDX2WP  script is included  with this
  569.                    package,  and may be used  as is or  as an example which
  570.                    may be expanded upon.   The sample script first verifies
  571.                    that  a table  image is  on the  Paradox workspace.   If
  572.                    there  is no image on  the workspace, a  message is dis-
  573.                    played and processing  stops, returning to the  previous
  574.                    state.  If there is an image on the workspace, a Paradox
  575.                    menu is displayed.  The menu allows the selection of the
  576.                    translation  type which  PDX2WP will  perform.   Once an
  577.                    option is  chosen, the appropriate  translation is  per-
  578.                    formed.  The WordPerfect  document is given a file  name
  579.                    which  is the  same as  the Paradox  table name,  and an
  580.                    extension of .COL, .MRG, or .TBL  for a parallel columns
  581.                    document,  secondary  merge  document,   or  WordPerfect
  582.                    table, respectively.
  583.  
  584.                    By copying  the sample script to  your Paradox directory
  585.                    and  adding the  SETKEY statement  to the  existing Init
  586.                    script (or  creating an  Init script which  includes the
  587.                    SETKEY statement),  the PDX2WP translation  utility will
  588.                    be  continuously available  from within  the interactive
  589.                    Paradox environment.
  590.  
  591.  
  592.           ─────────────────────────────────────────────────────────────────
  593.           PDX2WP                        Page 8
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.           How to Use the WP2PDX Utility
  605.           =============================
  606.  
  607.                WP2PDX may  also be run  from the DOS  command line or  from
  608.                Paradox, either within the interactive environment or from a
  609.                PAL script.  While the operation of WP2PDX from the DOS com-
  610.                mand line is  very similar  to that  of PDX2WP,  the use  of
  611.                WP2PDX from within Paradox is somewhat different.  Again, as
  612.                with PDX2WP, there generally  is not enough memory available
  613.                to  run WP2PDX from WordPerfect's  "Go To Dos"  or "Dos Com-
  614.                mand" options.
  615.  
  616.  
  617.                Running the WP2PDX Utility From the DOS Command Line
  618.                ----------------------------------------------------
  619.  
  620.                    When running  WP2PDX from the DOS command line, you must
  621.                    specify the  name  of the  WordPerfect  secondary  merge
  622.                    document you wish to convert and the name of the Paradox
  623.                    table you wish to create.  Since there is only one  type
  624.                    of Paradox table, there  are no additional parameters to
  625.                    the WP2PDX utility.
  626.  
  627.                    The syntax for WP2PDX is:
  628.  
  629.                        WP2PDX document-name table-name
  630.  
  631.                    "Document-name" is the name  of the WordPerfect document
  632.                    you wish to convert.  You may include a drive specifier,
  633.                    a full path name, and  a file name.  The file  name fol-
  634.                    lows  standard DOS naming conventions: a name of up to 8
  635.                    characters, followed by an optional period and an exten-
  636.                    sion of up to 3 characters.  The following are all valid
  637.                    names for a WordPerfect document:
  638.  
  639.                        MY-FILE
  640.                        PDX-TABL.DOC
  641.                        B:NAMES
  642.                        C:\WP\DOCUMENT\MAILLIST.WP
  643.  
  644.                    "Table-name" is the name of the Paradox table which will
  645.                    be  created.  This name  may be any  valid Paradox table
  646.                    name.   As with  the  document-name, you  may include  a
  647.                    drive specifier and a  full path name.  An  extension of
  648.                    "DB" is  assumed.  Therefore,  do not include  an exten-
  649.  
  650.  
  651.  
  652.           ─────────────────────────────────────────────────────────────────
  653.           PDX2WP                        Page 9
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                    sion.  If  an extension  is included,  an error  message
  665.                    will be displayed.
  666.  
  667.                    The following are examples of valid command-line entries
  668.                    for the WP2PDX utility:
  669.  
  670.                        WP2PDX CONTACTS.WP CONTACTS
  671.                        WP2PDX \ACCOUNTS.MRG \PARADOX\FILES\ACCOUNTS
  672.                        WP2PDX A:MERGE.NMS NAMES
  673.                        WP2PDX PARTLIST C:\PARADOX\INVENTORY\PARTS 
  674.  
  675.                    After  typing  the  appropriate  command-line  entry and
  676.                    pressing ENTER, several  lines of copyright  information
  677.                    are displayed.  WP2PDX then  performs the first of three
  678.                    steps: veryifying  that  the  specified  document  is  a
  679.                    WordPerfect secondary  merge document.  This  is done by
  680.                    scanning the  document for either "end of field" or "end
  681.                    of record" merge codes.  If no  such codes are found, an
  682.                    error message is displayed and the WP2PDX program termi-
  683.                    nates.
  684.  
  685.                    If  the appropriate merge codes  are found in the speci-
  686.                    fied  merge document,  the next  step in  the conversion
  687.                    process  is performed.   In this  step, the  document is
  688.                    analyzed  to determine the  structure of  the individual
  689.                    records in the merge  document.  The structure specifies
  690.                    how  many fields are in each record, how long each field
  691.                    is (up to  the Paradox maximum  of 255 characters),  and
  692.                    what type each field  is.  While this analysis  is being
  693.                    performed, the following message is displayed:
  694.  
  695.                        Analyzing WordPerfect document. Please wait
  696.  
  697.                    followed  by a  rotating dash or  slash character.   The
  698.                    rotating character is displayed as a visual confirmation
  699.                    that the program is actually working.
  700.  
  701.                    After the  analysis is  complete, the actual  conversion
  702.                    step begins.  During the conversion, a line is displayed
  703.                    which shows the progress  of the conversion, showing the
  704.                    record  number of  each Paradox  record as  it is  being
  705.                    created. Upon completion, a message indicating the total
  706.                    number of records translated is displayed.
  707.  
  708.                Running the PDX2WP Utility From Paradox
  709.                ---------------------------------------
  710.  
  711.  
  712.           ─────────────────────────────────────────────────────────────────
  713.           PDX2WP                       Page 10
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.                    Since WP2PDX  creates a  Paradox table, rather  than ex-
  725.                    tracts data from one, there are fewer practical  uses of
  726.                    WP2PDX  within  the  Paradox environment.    One example
  727.                    would  be to use the miniscript option from the PAL menu
  728.                    (Alt-F10).   At the  "Command:" prompt, use  the Paradox
  729.                    RUN BIG command, as follows:
  730.  
  731.                        run big "wp2pdx my-doc.mrg tablname"
  732.  
  733.                    This would create  a Paradox table  which could then  be
  734.                    viewed and  manipulated within the  Paradox environment.
  735.                    The  same command could  be similarly used  within a PAL
  736.                    script.
  737.  
  738.  
  739.           Limitations of PDX2WP
  740.           =====================
  741.  
  742.                This  version  of PDX2WP  is  a shareware  product,  and has
  743.                several limitations.  Though it is a totally  functional and
  744.                useful program,  there are  several limitations  and default
  745.                settings which may not be overridden.  Most of these will be
  746.                addressed in  a forthcoming commercial version  of the prod-
  747.                uct, which should be available sometime in the first half of
  748.                1991.  Where appropriate, the differences between the share-
  749.                ware version and the commercial version are noted.
  750.  
  751.                    --  Paradox date  fields are translated to  the standard
  752.                        MM/DD/YY format.   The commercial version  will pro-
  753.                        vide  the  choice between  this  format  and several
  754.                        others.
  755.  
  756.                    --  When  translating  to  a  WordPerfect  table, number
  757.                        fields  are  decimal aligned  in  the  cell, with  2
  758.                        decimal places.   The commercial version  will allow
  759.                        selection  of  numeric  formats,  including  commas,
  760.                        decimal places, and currency notations.
  761.  
  762.                    --  All fields  in the Paradox table  are translated and
  763.                        placed into  separate columns or fields,  and in the
  764.                        same  order  as they  appear  in  the Paradox  table
  765.                        structure.   The commercial  version will  allow the
  766.                        selection  of  specific  fields  in  a  user-defined
  767.                        order.  It  will also  allow the joining  of two  or
  768.                        more fields  together, separated  by a carriage  re-
  769.                        turn, a space, or other special characters or codes.
  770.  
  771.  
  772.           ─────────────────────────────────────────────────────────────────
  773.           PDX2WP                       Page 11
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.                    --  When translating to a WordPerfect table, the Paradox
  785.                        field names  are entered into  the first row  of the
  786.                        WordPerfect table to serve  as headers for the table
  787.                        structure.  This will be an option in the commercial
  788.                        version.
  789.  
  790.                    --  When translating to a secondary merge file, no field
  791.                        names are  defined.   Translation  occurs using  the
  792.                        standard ^E and ^R separators used in versions prior
  793.                        to  5.1.   The  commercial version  will provide  an
  794.                        option to  use the  version 5.1 {FIELD  NAMES}, {END
  795.                        FIELD} and {END RECORD} codes.
  796.  
  797.                    --  When translating to a  parallel columns format, only
  798.                        the first 24 fields from the Paradox  table are con-
  799.                        verted.    This is  a  limitation in  the  number of
  800.                        columns  that  WordPerfect  allows,  rather  than  a
  801.                        limitation of PDX2WP.
  802.  
  803.                    --  When translating  to a WordPerfect  table, only  the
  804.                        first  32 fields  and the  first 32,765  records are
  805.                        translated.   Again,  this  is a  limitation in  the
  806.                        number of columns and rows  that WordPerfect allows,
  807.                        not a limitation of PDX2WP.
  808.  
  809.                    --  Since PDX2WP has no knowledge of printer definitions
  810.                        used  in a  particular installation  of WordPerfect,
  811.                        there  is no  printer  information  included in  the
  812.                        created  document files.  This restricts these docu-
  813.                        ments from being printed from the List Files mode of
  814.                        WordPerfect.    They  must first  be  retrieved into
  815.                        WordPerfect, so  they may  be formatted for  the de-
  816.                        fault printer then printed.
  817.  
  818.                    --  When  translating to  either parallel  columns or  a
  819.                        WordPerfect  table, the  document is created  with a
  820.                        portrait page layout with 1" left and right margins.
  821.                        The columns are all created the same size,  based on
  822.                        the  page layout  and margin  size.   The commercial
  823.                        version will  allow selection  of portrait  or land-
  824.                        scape mode,  as well as  user-definable left, right,
  825.                        top, and bottom margins.
  826.  
  827.                    --  Password protected tables are not  supported by this
  828.                        version of PDX2WP.  The commercial version will pro-
  829.                        vide facilities for accessing protected tables.
  830.  
  831.  
  832.           ─────────────────────────────────────────────────────────────────
  833.           PDX2WP                       Page 12
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.                    --  Access to Paradox tables on a  local area network is
  845.                        not  supported by  this version  of PDX2WP.   Again,
  846.                        network support  will be available in the commercial
  847.                        version of PDX2WP.
  848.  
  849.                    --  Access to  protected  WordPerfect documents  is  not
  850.                        supported.   A message stating that  the WordPerfect
  851.                        document is password protected is displayed, and the
  852.                        program terminates.
  853.  
  854.                    --  The WP2PDX  utility currently interprets  all fields
  855.                        in a secondary merge document as alphanumeric.  This
  856.                        means  that  the Paradox  table  will  not have  any
  857.                        numeric, dollar, or date fields.  Future versions of
  858.                        WP2PDX will provide support for these field types.
  859.  
  860.                    --  With both  utilities, if the document or table to be
  861.                        created  already exists, the  existing file  will be
  862.                        replaced by the newly created file.
  863.  
  864.  
  865.           Suggestions and Hints
  866.           =====================
  867.  
  868.                Listed below are some helpful ideas and suggestions for get-
  869.                ting the most from PDX2WP.
  870.  
  871.                    --  If you are already  using Paradox, you can translate
  872.                        only  the fields  you  need by  using the  query-by-
  873.                        example capabilities of Paradox.  When querying, use
  874.                        the F6 key to check only those fields which you wish
  875.                        to  be translated into  WordPerfect.   The resulting
  876.                        Answer table will only  include the fields that have
  877.                        been  checked with the F6  key.  Then  use PDX2WP to
  878.                        translate the Answer table.
  879.  
  880.                    --  When creating a  WordPerfect table, all columns  are
  881.                        set to  equal widths.   Once the  document has  been
  882.                        created, the  column  widths may  be easily  changed
  883.                        using table edit  mode (Alt-F7).  All aspects of the
  884.                        table may be changed in this manner.
  885.  
  886.                    --  Similarly,  when  creating  parallel   columns,  all
  887.                        columns are  set to equal widths.  Column widths and
  888.                        margins  may be  set  using  the  Column  Definition
  889.  
  890.  
  891.  
  892.           ─────────────────────────────────────────────────────────────────
  893.           PDX2WP                       Page 13
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.                        command  (Alt-F7).   This is  a bit  more cumbersome
  905.                        than changing column widths in a table.
  906.  
  907.                    --  It may be  useful to change  the orientation of  the
  908.                        page from portrait mode to landscape mode by select-
  909.                        ing  a different  paper size  using the  Page Format
  910.                        command.   This will allow the use  of wider columns
  911.                        in both tables and parallel columns.
  912.  
  913.                    --  When  creating a  WordPerfect table,  be  aware that
  914.                        there are considerably more codes required to create
  915.                        a table than to create parallel columns.  Your final
  916.                        document may be as much as 7 to 10 times larger than
  917.                        the equivalent Paradox  table translated to parallel
  918.                        columns.
  919.  
  920.                    --  When initially  creating a secondary  merge document
  921.                        within  WordPerfect, don't put  too much information
  922.                        into a single field.  For example, split the mailing
  923.                        address  into four  or  five fields:  Street,  City,
  924.                        State,  Zip code.   This  will  not only  allow more
  925.                        flexibility  within  the created  Paradox  table, it
  926.                        will also allow  greater flexibility within WordPer-
  927.                        fect  when using selection  and sorting capabilities
  928.                        while merging.  It  will also reduce the possibility
  929.                        of  having information  beyond 255  characters in  a
  930.                        single field trimmed from the field when  converting
  931.                        to a Paradox table.
  932.  
  933.  
  934.           Final Comments
  935.           ==============
  936.  
  937.                As mentioned earlier, this version of PDX2WP is a  shareware
  938.                product.  It  is not in the public domain,  nor is it "Free-
  939.                ware."   As such, you are expected  to register your copy of
  940.                PDX2WP by filling  out the  Invoice/Registration Form  which
  941.                appears at the end of this document.
  942.  
  943.                As a registered user,  you will be made aware of  all future
  944.                versions of PDX2WP, commercial as well as shareware.  If you
  945.                decide to upgrade to the commercial version  when it becomes
  946.                available, your registration fee will be credited toward the
  947.                price  of the  commercial version.   You  will also  be made
  948.                aware  of other utilities and programs from S. L. S. Systems
  949.                as they become available.
  950.  
  951.  
  952.           ─────────────────────────────────────────────────────────────────
  953.           PDX2WP                       Page 14
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.                Your  comments and suggestions regarding PDX2WP are welcome.
  965.                You have the opportunity  to impact the future of  this pro-
  966.                gram,  as well as provide input for the development of other
  967.                useful utilities and programs.
  968.  
  969.                S. L. S. Systems  may be reached through Electronic  Mail on
  970.                Compuserve  (account number  76104,2074) or  by mail  at the
  971.                address on the Invoice/Registration Form.
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.           ─────────────────────────────────────────────────────────────────
  1013.           PDX2WP                       Page 15
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.                                  Invoice/Registration Form
  1025.                                  =========================
  1026.  
  1027.  
  1028.                                                            Date: __________
  1029.  
  1030.  
  1031.                                                          S. L. S. Systems  
  1032.                                                          13 Shirley Avenue 
  1033.                                                          Kingston, MA 02364
  1034.  
  1035.  
  1036.                SOLD TO:
  1037.  
  1038.                Name:    ___________________________________
  1039.  
  1040.                Company: ___________________________________
  1041.  
  1042.                Address: ___________________________________
  1043.  
  1044.                         ___________________________________
  1045.  
  1046.                Phone:  (_____) ___________________
  1047.  
  1048.                FAX:    (_____) ___________________
  1049.  
  1050.  
  1051.  
  1052.                ┌────────────────────────────────────────┬─────────────────┐
  1053.                │      Description                       │     Price       │
  1054.                ├────────────────────────────────────────┼─────────────────┤
  1055.                │ License for PDX2WP Version 1.10        │  $    30.00     │
  1056.                │                                        │                 │
  1057.                │ ____ additional licenses @ $30.00      │    _________    │
  1058.                │                                        │                 │
  1059.                │                                        │                 │
  1060.                │                                        │                 │
  1061.                └────────────────────────────────────────┼─────────────────┤
  1062.                                  Total Amount Enclosed  │  $              │
  1063.                                                         └─────────────────┘
  1064.  
  1065.  
  1066.  
  1067.                Please make checks payable to:
  1068.                        S. L. S. Systems
  1069.                        13 Shirley Avenue
  1070.                        Kingston, MA 02364
  1071.